@mengxr already found this out - but the reason is you'd want to declare the type as java.lang.Double instead of Long.