This will compile - but I am not quite sure if it will do what you want
type SomeClass() =
interface IRule with
member this.Getrule<'T>(keyfield):bool * 'T =
let value = 3
(true,unbox box value )
In particular this doesn't do a cast and may fail at runtime.