F# - Convert Int option to Int64 option

Viewed 723

Is there better way how to do this? :

let intOption = Some(123) 
let longOption = match intOption with
                   | Some x -> Some(int64 x )
                   | None   -> None

I need to convert option of int to option of int64.

2 Answers
Related